.PHONY:all
all:tcp_server tcp_client

LDFLAG=#-DSelfDefine=1

tcp_server:TcpServerMain.cc
	g++ -o $@ $^ $(LDFLAG)-std=c++14 -lpthread -ljsoncpp

tcp_client:TcpClientMain.cc
	g++ -o $@ $^ $(LDFLAG)-std=c++14 -ljsoncpp

.PHONY:clean
clean:
	rm -f tcp_server tcp_client

